package com.jzy.secondhandbooktradingmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@TableName("trade_order")
@Data
public class TradeOrder {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String orderNo;
    private Integer userId;
    private BigDecimal totalPrice;
    private Date createTime;
    private String status;

    @com.baomidou.mybatisplus.annotation.TableField(exist = false)
    private java.util.List<TradeOrderDetail> details;
}
